// 04myCenter/03receiveAddress/03enterpriseAddress/enterpriseAddress.js
var co = require('../../../resource/js/common.js')
var app = getApp()
var _this, _data
Page({

   /**
    * 页面的初始数据
    */
   data: {
      bizList: '' //商家列表
   },
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
      _this = this
      _data = this.data
      this.getBizList()
   },
   //获取商家列表
   getBizList: function () {
      var url = 'jyhs/Admin/getBizList'
      co.getShareApi(url, {
         User_ID: app.Data.userInfo.User_ID
      }, function (res) {
         if (res.code == 0) {
            _this.setData({
               bizList: res.data
            })
            //console.log('res.data==', res.data)
         } else {

         }
      })
   },
   //修改企业地址
   changeEnterpriseAddress: function (e) {
      var Biz_ID = e.currentTarget.dataset.biz_id
      //console.log('Biz_ID', Biz_ID)
      wx.navigateTo({
         url: '/04myCenter/03receiveAddress/03enterpriseAddress/01changeEnterpriseAddress/changeEnterpriseAddress?Biz_ID=' + Biz_ID,
      })



   },
})